package org.jeecgframework.web.system.job;


import org.springframework.scheduling.quartz.CronTriggerBean;
/**
 * 在原有功能的基础上面增加数据库的读取
 * @author JueYue
 * @date 2013-9-22
 * @version 1.0
 */
public class DataBaseCronTriggerBean/* extends CronTriggerBean*/{
	private static final long serialVersionUID = 1L;
//	@Autowired
//	private TimeTaskService timeTaskService;
	/**
	 * 读取数据库更新文件
	 */
	public void afterPropertiesSet() throws Exception {
//		super.afterPropertiesSet();
		/*TSTimeTaskEntity task = timeTaskService.findUniqueByProperty
				(TSTimeTaskEntity.class,"taskId",getName());
		if(task!=null&&task.getIsEffect().equals("1")
				&&!task.getCronExpression().equals(this.getCronExpression())){

			this.setCronExpression(task.getCronExpression());
			DynamicTaskService.updateSpringMvcTaskXML(this,task.getCronExpression());
		}*/
	}




}
